file = open("university.txt","rt")
tables = file.readlines()
counter = {}
sum = 0
firstName= ""
firstNum = 0
for line in tables:
    province,num = line.split()
    province.strip()
    num = int(num)
    print(f"{province} {num}")
    if  num > firstNum:
        firstNum = num
        firstName = province
    sum = sum + num
print(f"Max = {firstName} and Total = {sum}")
         
    